package cn.jiyun.dao;

import cn.jiyun.pojo.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CategoryDao extends BaseMapper<Category> {

    @Delete("DELETE FROM category WHERE id= #{id}")
    void del(@Param("id") Long id);
}
